<%@page import="beans.*"%>
<%@page import="controladores.*"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@include file='master/header.jsp'%>

	<form name="abrirM" method="get" onsubmit="return validarForm_abrir_mesa()"> <!-- >-->
		
		<%
		
			if(request.getParameter("id")==null) {
				out.print("Ingrese codigo de Comanda");
				return;
			}
			int comandaId = Integer.parseInt(request.getParameter("id"));
			Controlador c = new Controlador();
			Object[] o = c.getComanda(comandaId);
			
			
		%>
		
		<h2>Comanda <%=comandaId %></h2>
		

		<table border=1 cellspacing=0 style="width:400px">
			<tr>
				<td>NroComanda </td>
				<td><%=o[0] %></td>
				
			</tr>
			<tr>
				<td>Nombre</td>
				<td><%=o[1] %></td>
			</tr>
			<tr>
				<td>nroMesa </td>
				<td><%=o[2] %></td>
			</tr>
			<tr>
				<td>NroSector </td>
				<td><%=o[3] %></td>
			</tr>
			<tr>
				<td style="vertical-align:top;">ItemsComanda</td>
				<td>
					<%=o[4] %>
				
				</td>
			</tr>
		</table>
	
		
		<br>
		 <br>
		 <br><br>
		<!-- 
		<a href="pedido.html">Ingresar Pedido</a><br>
		<a href="cerrar_mesa.html">Cerrar Mesa</a>-->
	
	</form>
<%@include file='master/footer.jsp'%>